<?php
	require_once('classes/Author.php');
	require_once('classes/Doodle.php');
	require_once('classes/ReportableWrapper.php');
	require_once('classes/XMLReporter.php');
	$authorId = isset($_REQUEST['authorId'])?$_REQUEST['authorId']:"0";
	$author = Author::findById($authorId);
	$doodles = new reportableWrapper($author->getDoodles(), 'doodles');
	$xml = new XMLReporter();
	echo($doodles->report($xml));
?>